package demo3;

public class char5 {
    public static void main(String[] args) {
        //手机号屏蔽
    String phoneNumber="12345678901";
    String start=phoneNumber.substring(0,3);
    String end=phoneNumber.substring(7);
    String result=start+"****"+end;
    System.out.println(result);
    }
}
